<template>
  <vue-form
    ref="makingForm"
    :formJson="formJson"
    :moduleFormId="moduleFormId"
    :is-dev="isDev"
    upload
    preview
    generate-code
    generate-json
    clearable
  >
  </vue-form>
</template>

<script>
export default {
  props: ["formJson", "moduleFormId", "isDev"],
  mounted() {},
  methods: {
    saveTempJson() {
      let data = this.$refs.makingForm.returnTempJson();
      return data;
    },
    setJSON(json) {
      this.$refs.makingForm.setJSON(json);
    },
  },
};
</script>
